/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 30px 0;
}

.logo {
    font-size: 3rem;
    color: #ff6b81;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.slogan {
    font-size: 1.2rem;
    color: #666;
}

/* 主要内容区域 */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 20px 0;
}

/* 按钮样式 */
.button-container {
    margin: 30px 0;
}

#bored-button {
    background: linear-gradient(135deg, #8A2BE2 0%, #BA55D3 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(138,43,226,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

#bored-button i {
    margin-right: 10px;
    font-size: 1.8rem;
}

#bored-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(252, 92, 101, 0.4);
}

#bored-button:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px rgba(252, 92, 101, 0.4);
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1) rotateX(0deg) rotateY(0deg);
        box-shadow: 0 0 0 0 rgba(138,43,226,0.4);
    }
    70% {
        transform: scale(1.05) rotateX(15deg) rotateY(10deg);
        box-shadow: 0 0 0 15px rgba(138,43,226,0);
    }
    100% {
        transform: scale(1) rotateX(0deg) rotateY(0deg);
        box-shadow: 0 0 0 0 rgba(138,43,226,0);
    }
}

@keyframes openBox {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(60deg) rotateY(20deg);
    }
    100% {
        transform: rotateX(0deg) rotateY(0deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    pointer-events: none;
    background: radial-gradient(circle, #FF69B4 20%, #8A2BE2 80%);
    border-radius: 50%;
    animation: particlePop 1s ease-out forwards;
}

/* 计数器样式 */


/* 广告容器 */
.ad-container {
    width: 100%;
    margin: 30px 0;
}

.ad-banner {
    width: 100%;
    height: 90px;
    background: rgba(255,215,0,0.1);
    border: 3px dashed #FFD700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder {
    color: #a4b0be;
    font-size: 1rem;
}

/* 浮动广告 */
.ad-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    height: 250px;
    background-color: #f1f2f6;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页脚样式 */
footer {
    background-color: #2f3542;
    color: #dfe4ea;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about, .contact {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.about h3, .contact h3 {
    color: #ff6b81;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: #dfe4ea;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff6b81;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3d4452;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    #bored-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .ad-float {
        width: 250px;
        height: 200px;
        right: 10px;
        bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    #bored-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .ad-float {
        width: 200px;
        height: 150px;
    }
}